<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <script>
        const str = `
        <ul>
            <li>
                <a >妈卖批的救赎</a>
                <p>上映时间：2022-09-20</p>
            </li>
            <li>
                <a>帖憨憨的救赎</a>
                <p>上映时间：2022-11-20</p>
            </li>
        </ul>
        `
        //写一个正则表达式
        const reg = /<li>.*?<a>(.*?)</a>.*?<p>(.*?)<\/p>/sg
        let result = reg.matchAll(str)
        console.log(result)    
    </script>
</body>
</html>